package com.parsechina.hpush.broker.internal.message;

import io.netty.buffer.ByteBuf;

/**
 * @author linfeng
 * @since 2016/12/9
 */
public class NotifyIOSPublishMessage extends NotifyAbstractMessage {

    private static final long serialVersionUID = -6885362057720631063L;
    private final String clientId;
    private final String username;
    private final ByteBuf message;

    public NotifyIOSPublishMessage(String clientId, String username, ByteBuf message) {
        super(NotifyType.PUBLISH);
        this.clientId = clientId;
        this.username = username;
        this.message = message;
    }

    public ByteBuf getMessage() {
        return message;
    }

    public String getClientId() {
        return clientId;
    }

    public String getUsername() {
        return username;
    }
}
